package com.example.design.bilibili.adapter.classAdapter;

public class VoltageAdapter extends Voltage220V implements IVoltage5V{

    @Override
    public int output5V() {
        //获取220V电压
        int src = output220V();
        int dstV = src/44;//转换成5V
        return dstV;
    }
}
